package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/14  11:02
 */
@ApiModel("保存角色参数")
public class SaveRoleEvt implements Serializable{
    @ApiModelProperty("角色基本信息")
    @Valid
    private RoleEvt roleEvt;
    @ApiModelProperty("添加的功能权限ID")
    private List<Long> addPermissionId;
    @ApiModelProperty("去掉的功能权限ID")
    private List<Long> delPermissionId;
    @ApiModelProperty("需要添加的资源权限")
    @Valid
    private List<ResourceEvt> addResource;
    @ApiModelProperty("需要删除的资源权限")
    @Valid
    private List<ResourceEvt> delResource;

    public RoleEvt getRoleEvt() {
        return roleEvt;
    }

    public void setRoleEvt(RoleEvt roleEvt) {
        this.roleEvt = roleEvt;
    }

    public List<Long> getAddPermissionId() {
        return addPermissionId;
    }

    public void setAddPermissionId(List<Long> addPermissionId) {
        this.addPermissionId = addPermissionId;
    }

    public List<Long> getDelPermissionId() {
        return delPermissionId;
    }

    public void setDelPermissionId(List<Long> delPermissionId) {
        this.delPermissionId = delPermissionId;
    }

    public List<ResourceEvt> getAddResource() {
        return addResource;
    }

    public void setAddResource(List<ResourceEvt> addResource) {
        this.addResource = addResource;
    }

    public List<ResourceEvt> getDelResource() {
        return delResource;
    }

    public void setDelResource(List<ResourceEvt> delResource) {
        this.delResource = delResource;
    }

    @Override
    public String toString() {
        return "SaveRoleEvt{" +
                "roleEvt=" + roleEvt +
                ", addPermissionId=" + addPermissionId +
                ", delPermissionId=" + delPermissionId +
                ", addResource=" + addResource +
                ", delResource=" + delResource +
                '}';
    }
}
